<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('concepto/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table class="formulario"  width="98%"  >
    <tbody>
          <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['codigo']->renderLabel() ?></th>
        <td >
          <?php echo $form['codigo']->renderError() ?>
           <?php echo $form['codigo'] ?>
        </td>
      </tr>    
      <!--?php echo $form->renderGlobalErrors() ?-->
      <tr>
        <th><?php echo $form['nombre']->renderLabel() ?></th>
        <td >
          <?php echo $form['nombre']->renderError() ?>
           <?php echo $form['nombre']->render(array("style"=>"width:60%; text-transform: uppercase")) ?>
        </td>
      </tr>
      <tr>
        <th ><?php echo $form['tipo']->renderLabel() ?></th>
        <td>
          <?php echo $form['tipo']->renderError() ?>
          <?php echo $form['tipo'] ?>
        </td>
      </tr>
      <tr>
        <th ><?php echo $form['cuenta']->renderLabel() ?></th>
        <td >
          <?php echo $form['cuenta']->renderError() ?>
          <?php echo $form['cuenta'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['valor']->renderLabel() ?></th>
        <td >
          <?php echo $form['valor']->renderError() ?>
          <?php echo $form['valor'] ?>
        </td>
      </tr>
      <tr>
        <th ><?php echo $form['activo']->renderLabel() ?></th>
        <td >
          <?php echo $form['activo']->renderError() ?>
          <?php echo $form['activo'] ?>
        </td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a style=" text-decoration:none;   "href="<?php echo url_for('concepto/index') ?>">Volver</a>
         
          <input type="submit" value="Aceptar" onmouseover="style.cursor=cursor"/>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
